#!/bin/bash

number_of_cores=`lscpu -b -p=Core,Socket | grep -v '^#' | sort -u | wc -l`
today=$(date +-%Y-%m-%d-%H%M)
7z a -t7z -m0=lzma2 -mx=9 -mmt=$number_of_cores -ms=on "$1$today.7z" $1

